#include "stdafx.h"
#include "../BaseGameComponent.h"
#include "../Objects/Human.h"
#include <assert.h>

BaseGameComponent::BaseGameComponent(void)
{

}

/*virtual*/ BaseGameComponent::~BaseGameComponent(void)
{

}

void BaseGameComponent::AddRef(void)
{
	// incrament ref count
	refCount++;
}

void BaseGameComponent::Release(void)
{
	// decrament ref count
	refCount--;
	// destroy instance if ref count reaches zero
	if (refCount == 0)
	{
		delete this;
	}
}